import requests, json
#import pandas as pd

zhang_key = "1a8b4a8f8eacf6e72af8287289e0e270"
中大南方_address = "广东省广州市中山大学南方学院"
url = "https://restapi.amap.com/v3/geocode/geo?parameters"
params = {
    "key": zhang_key,
    "address":中大南方_address
}
# positional argument follows keyword argument
# pa 一定要放在前面，keyword argument放在末尾！！！可以
response = requests.get(url,params=params)
response
# positional argument follows keyword argument
# pa 一定要放在前面，keyword argument放在末尾！！！可以
response = requests.get(url,params=params)
response
中大南方_location = response.json()['geocodes'][0]['location']
中大南方_location
